import request from '../utils/request'
export const Login = (data) =>
    request({
        url: '/api/login',
        method: 'post',
        data
    })
export const apiAddMessage = (data) =>
    request({
        url: '/api/admin/message/add',
        method: 'post',
        data
    })
export const apiUpdateMessage = (data) =>
    request({
        url: '/api/admin/message/update',
        method: 'post',
        data
    })
export const apiDeleteMessage = (data) =>
    request({
        url: '/api/admin/message/delete',
        method: 'post',
        data
    })
export const apiGetMessageList = (params) =>
    request({
        url: '/api/admin/message/list',
        method: 'get',
        params
    })
export const apiUploadImage = (data) =>
    request({
        url: '/api/admin/message/upload',
        method: 'post',
        data
    })
